home *** CD-ROM | disk | FTP | other *** search
/ Pro Intralink 3.1 / Pro Intralink v3.1.iso / dsrc / templates / unix / u_start_pr_server.tpl < prev    next >
Encoding:
Text File  |  2001-11-27  |  1.4 KB  |  66 lines

  1. // 13-Apr-98 $$1  JJE   Created.
  2. // 04-Aug-00 $$2  TWH   Add hpux11_pa32 dir check
  3. // 16-May-01 $$3  TWH   hpux_pa64
  4. #!/bin/csh
  5. # set up CDRS variable if not defined in your environment
  6. #
  7. #setenv CDRS /usr/local/cdrs
  8. #
  9.  
  10. if (0 == $?CDRS) then
  11.     echo "Environment variable CDRS must first be defined"
  12.     exit 999
  13. endif
  14.  
  15. if (-e $CDRS/install/unix/getpmt) then
  16.   set MACHINE_TYPE=`$CDRS/install/unix/getpmt`
  17. else
  18.   echo "$CDRS/install/unix/getpmt not found... exiting"
  19.   exit -1
  20. endif
  21.  
  22. if ( $MACHINE_TYPE == "hpux_pa64" ) then
  23.   if ( ! -d $CDRS/hpux_pa64/obj ) then
  24.     set MACHINE_TYPE="hpux11_pa32"
  25.   endif
  26. endif
  27. if ( $MACHINE_TYPE == "hpux11_pa32" ) then
  28.   if ( ! -d $CDRS/hpux11_pa32/obj ) then
  29.     set MACHINE_TYPE="hp8k"
  30.   endif
  31. endif
  32. #
  33. ## Set path for PhotoRender executable.
  34. #
  35.  
  36. setenv PR_SERVER "$CDRS/$MACHINE_TYPE/obj/RenderServer -t PhotoRender"
  37.  
  38. #
  39. # For larger models, increase this number, max of 1000000
  40. #
  41. setenv MAX_POLYS 100000
  42.  
  43. #
  44. # For faster renderings, increase these numbers. Max recommended is
  45. # 1952 width, 1040 height, uses more memory.
  46.  
  47.  
  48. setenv MAX_RENDER_WIDTH  512
  49. setenv MAX_RENDER_HEIGHT 516
  50.  
  51. # for multi-processor systems, increase to # of processors.
  52. #
  53.  
  54. setenv MAX_PROCESSORS    1
  55.  
  56.  
  57. #
  58. ### Starting up the PhotoRender Server:
  59. #
  60.  
  61.  
  62. echo "$PR_SERVER -v -m $MAX_POLYS -n $MAX_PROCESSORS -w $MAX_RENDER_WIDTH $MAX_RENDER_HEIGHT &"
  63. $PR_SERVER -v -m $MAX_POLYS -n $MAX_PROCESSORS -w $MAX_RENDER_WIDTH $MAX_RENDER_HEIGHT &
  64.  
  65. exit
  66.